<%--动漫区所有笔记页面--%>
<%@ page import="dao.ImplementManager" %>
<%@ page import="pojo.Note" %>
<%@ page import="java.util.ArrayList" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<style>
    .title_left{
        margin-left: 420px;
    }
    .content_left{
        border:1px solid black;
        width: 440px;
        margin-left: 420px;
        height: 100px;
        margin-bottom: 20px;
    }
    .back{
        margin-left: 800px;
    }
    .type{
        margin-left: 420px;
    }
</style>
<body>
<h2 align="center">动漫区</h2>
<a href="allAreas.jsp"><h6 class="back">返回首页</h6></a>
<%
    String type="动漫区";
    ImplementManager implementManager=new ImplementManager();
    ArrayList<Note> areanotes=implementManager.areaNote(type);
    request.setAttribute("areanotes",areanotes);

%>
<c:forEach items="${areanotes}" var="note" varStatus="s">
    <c:if test="${note.style==1}">
    <form>
        <table>
            <tr>
                <td>
                    <h5 class="title_left">${note.title}</h5>
                    <h5 class="type">${note.type}</h5>
                    <p class="content_left">${note.content}</p>
                </td>
            </tr>
        </table>
    </form>
    </c:if>
</c:forEach>
</body>
</html>
